package com.bonc.ioc.controller;

import com.bonc.ioc.base.controller.BaseController;
import com.bonc.ioc.common.util.AppReply;
import com.bonc.ioc.service.AnnounceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 公告
 *
 * @version 1.0
 * @description:
 * @author: wangqinglin
 * @date: 2021/4/9 11:32
 * @change : 2021/4/9 11:32 by q8541q@163.com  for init
 */

@RestController
@RequestMapping("/announce")
public class AnnounceController extends BaseController {


    @Autowired
    private AnnounceService announceService;

    @GetMapping("/getAnnounceList")
    public AppReply getAnnounceList() {
        return AppReply.success(announceService.getAnnounceList());
    }
}
